#define _CRT_SECURE_NO_WARNINGS 1
//打印图形
#include <stdio.h>

void print(int n)
{
	int row = 0;
	int col = 0;
	//打印上半部分图形
	for (row = 1; row <= n / 2 + 1; row++)
	{
		//打印空格
		for (col = 1; col <= n / 2 + 1 - row; col++)
		{
			printf(" ");
		}
		//打印星号
		for (col = 1; col <= 2 * row - 1; col++)
		{
			printf("*");
		}
		printf("\n");
	}
	//打印下半部分图形
	for (row = n / 2 + 1; row >= 1; row--)
	{
		//打印空格
		for (col = 1; col <= n / 2 + 1 - row; col++)
		{
			printf(" ");
		}
		//打印星号
		for (col = 1; col <= 2 * row - 1; col++)
		{
			printf("*");
		}
		printf("\n");
	}
}
int main()
{
	int n = 0;
	scanf("%d", &n);
	print(n);
	return 0;
}